import axios from 'axios'
export default {
    namespaced: true, // 设置命名空间
    state() {
        return {
            schoollist: []
        }
    },
    mutations: {
        initSchoolList(state, step) {
            state.schoollist = step
        }
    },
    actions: {
        initSchoolListAsync({ commit }) {
            axios.get('https://api.i-lynn.cn/college').then(res => {
                console.log(res);
                commit('initSchoolList', res.data.data.list1)
            })
        }
    }
}